//
//  ViewController.swift
//  GjCup
//
//  Created by abc on 2024/4/7.
//

import UIKit

class ViewController: UIViewController {

    @IBOutlet weak var topView: UIView!{
        didSet{
            topView.layer.shadowColor = UIColor(red: 0.42, green: 0.74, blue: 1, alpha: 0.20000000298023224).cgColor
            topView.layer.shadowOffset = CGSize(width: 0, height: 8)
            topView.layer.shadowOpacity = 1
            topView.layer.shadowRadius = 15
            topView.layer.cornerRadius = 30
        }
    }
    @IBOutlet weak var downView: UIView!{
        didSet{
            downView.layer.shadowColor = UIColor(red: 0.42, green: 0.74, blue: 1, alpha: 0.20000000298023224).cgColor
            downView.layer.shadowOffset = CGSize(width: 0, height: 8)
            downView.layer.shadowOpacity = 1
            downView.layer.shadowRadius = 15
            downView.layer.cornerRadius = 30
        }
    }
    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view.
    }
    
    
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destination.
        // Pass the selected object to the new view controller.
        
        if segue.identifier == "Hwen" {
            let vc = segue.destination as! DWDVc
            vc.type = .wd
        }else if segue.identifier == "Hchang" {
            let vc = segue.destination as! DWDVc
            vc.type = .cd
        }else if segue.identifier == "Hmian" {
            let vc = segue.destination as! DWDVc
            vc.type = .mj
        }else if segue.identifier == "Hti" {
            let vc = segue.destination as! DWDVc
            vc.type = .tj
        }
    }
    



}

